package com.holystone.splunk.utils;

/**
 * Copyright (c) 2015, HOLYSTONE Technologies, Inc.
 * All right reserved.
 *
 * @desc:
 * @author:fengt
 * @date:2018/4/27
 * @Time:下午6:58
 */
public class EHCacheConfig {
    /**
     * 元素最大数量
     */

    public static int MAXELEMENTSINMEMORY = 50000;

    /**
     *
     * 是否把溢出数据持久化到硬盘
     */

    public static boolean OVERFLOWTODISK = true;

    /**
     *
     * 是否会死亡
     */

    public static boolean ETERNAL = false;

    /**
     *
     * 缓存的间歇时间
     */

    public static int TIMETOIDLESECONDS = 600;

    /**
     *
     * 存活时间(默认一天)
     */

    public static int TIMETOlIVESECONDS = 86400;

    /**
     *
     * 需要持久化到硬盘否
     */

    public static boolean DISKPERSISTENT = false;

    /**
     *
     * 内存存取策略
     */

    public static String MEMORYSTOREEVICTIONPOLICY = "LFU";
    /**
     *
     */
    public static String PROJECR_YONGYUAN_CACHE = "PROJECR_YONGYUAN_CACHE";
    public static String PROJECR_YONGYUAN_CACHE_ALERT_NAME_KEY = "PROJECR_YONGYUAN_CACHE_ALERT_NAME_KEY";
    public static String PROJECR_YONGYUAN_CACHE_EVENT_KEY = "PROJECR_YONGYUAN_CACHE_EVENT_KEY";
    public static long  PROJECR__CACHE_TIME_60 = 3600;
    public static long  PROJECR__CACHE_TIME_30 = 1800;
    public static long  PROJECR__CACHE_TIME_15 = 900;
    public static long  PROJECR__CACHE_TIME_5 = 300;


}
